package com.yunzai.register.domain;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Size;

public class Register {

    @Size(min = 6, max = 20, message = "用户名长度需在6到20之间")
    private String username;

    @Size(min = 10, max = 20, message = "密码长度需在10到20之间")
    private String password;

    @Email(message = "邮箱格式不正确")
    private String email;

    private String code;

    private String uuid;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Override
    public String toString() {
        return "Register{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", code='" + code + '\'' +
                ", uuid='" + uuid + '\'' +
                '}';
    }
}
